//
//  StoreBaseViewController.h
//  ebook
//
//  Created by 吴超飞 on 16/3/28.
//  Copyright © 2016年 ;. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "WKWebViewJavascriptBridge.h"
#import "WebViewJavascriptBridge.h"
#import "ReaderBookModel.h"
#import "ReaderViewController.h"
#import "MBProgressHUD.h"
#import "UIView+Extension.h"
#import "MTLoginViewController.h"
#import "BookcaseOprationController.h"
#import <WebKit/WebKit.h>

@interface StoreBaseViewController : MTBaseViewController<UIWebViewDelegate,WKNavigationDelegate,WKUIDelegate,LoginDelegate>

@property (nonatomic,copy) WVJBHandler messageHandler;
@property (nonatomic,retain) UIView *webView;

@property WKWebViewJavascriptBridge *bridge8;
@property (nonatomic,retain) WKWebView *webView8;
//@property WebViewJavascriptBridge *bridge7;//iOS7中使用
//@property (nonatomic,retain) UIWebView *webView7;

@property (nonatomic,retain) MBProgressHUD *HUD;
@property (nonatomic,  copy) NSString *url;


//构建进度条
-(UIProgressView *)createProgressView;

//菜单重定向
-(void)redirectMenu:(NSInteger)index;
//超过一个小时后进入前台刷新webview
-(void)enterForegroundReloadWebview;

-(void)showHUD;
-(void)hiddenFailView;
-(void)webView:(UIView *)webview loadUrl:(NSString *)url;

@end
